﻿using Abp.Application.Services.Dto;
using Abp.Runtime.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Laboratory.Projects.Dto
{
    public class CreateProjectInput : IEntityDto<Guid>, IShouldNormalize
    {

        public Guid Id { get; set; }

        [Required]
        public string Name { get; set; }

        public DateTime Time { get; set; }

        public int ProNum { get; set; }

        public bool ISEnb { get; set; }
      

        public void Normalize()
        {
            if (Time == null)
            {
                Time = DateTime.Now;
            }
        }
    }

}
